/**
 * Created by liyl on 2017/7/31. 微博配置
 */
import send from '../../http'
export default {
  getWeiboUrlAndAppkey (data) {
    let req = {
      data: data,
      action: 'config.channel.getWeiBoPulicInfo'
    }
    return send.fetch(req, 'post')
  },
  saveBindWeiboDetail (data) {
    let req = {
      data: data,
      action: 'config.channel.saveWeiboConfig'
    }
    return send.fetch(req, 'post')
  },
  queryWeiboList (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWeiboList'
    }
    return send.fetch(req, 'post')
  },
  queryWeiboCfgById (data) {
    let req = {
      data: data,
      action: 'config.channel.queryWeiboCfgById'
    }
    return send.fetch(req, 'post')
  },
  remvoeWeiboConfig (data) {
    let req = {
      data: data,
      action: 'config.channel.remvoeWeiboConfig'
    }
    return send.fetch(req, 'post')
  }
}
